﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="myplatform.aspx.cs" Inherits="myplatform" %>

<%@ Register assembly="AspNetPager" namespace="Wuqi.Webdiyer" tagprefix="webdiyer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
       <link href="../style.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript">
        function openurl(id) {
            window.open('../mystudy/kecheng_play_temp.aspx?rid=' + id, 'kecheng_play', 'width=' + screen.width + ',height=' + screen.height + ',top=0,left=0,toolbar=yes,menubar=yes,scrollbars=yes,resizable=yes,location=yes,status=yes');
           
        }
    </script>
</head>
<body>
    <form id="form1" runat="server"> 
    
     <div class="header_back" style="height:65px;padding-top:3px;padding-bottom:3px;" >
         <table width="100%"  class="btn_back">
                    <tr>
                        <td style="width: 20px">
                           </td>
                        <td style="width: 100px"><span class="font3"><span class="style20">
                            <asp:LinkButton ID="LB1" runat="server" OnClick="LB_Click" CssClass="font33">正在录制的课程</asp:LinkButton></span></span></td>
                        <td style="width: 22px">
                           </td>
                        <td style="width: 100px"><span class="font3"><span class="style20">
                            <asp:LinkButton ID="LB2" runat="server" OnClick="LB_Click" CssClass="font33">正在审核的课程</asp:LinkButton></span></span></td>
                        <td style="width: 22px">
                           </td>
                        <td style="width: 100px"><span class="font3"><span class="style20">
                            <asp:LinkButton ID="LB4" runat="server" OnClick="LB_Click" CssClass="font33">通过审核的课程</asp:LinkButton></span></span></td>
                    </tr>
                                        <tr><td colspan="6" >
                        <span style="padding-left:5px;padding-top:-5px;">课程名称：<asp:TextBox ID="KeChengMingCheng" runat="server"></asp:TextBox>
                        授课老师：<asp:TextBox ID="ShouKeLaoShi"
                            runat="server"></asp:TextBox><asp:Button ID="Button1" runat="server" 
                            Text="搜索" onclick="Button1_Click" /></span>
                            </td>
                            </tr>
                </table>
     
     </div> 
    <table style="margin-top:3px;">
       
        <tr>
            <td class="font_con table_con" >
                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"  Width="820px" DataKeyNames="id" 
               OnRowDataBound="GridView1_RowDataBound" CellPadding="0" ForeColor="Black" GridLines="Vertical"  CssClass="table_con">
                    <Columns>
                        <asp:BoundField HeaderText="编号" />
                        <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True"
                            SortExpression="id" Visible="False" />
                        <asp:TemplateField HeaderText="课程名称">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" CommandArgument='<%#Eval("id")%>' runat="server" Text='<%# Eval("name", "{0}") %>'
                                    Width="360px" Font-Underline="False"  ForeColor="Black"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="../Exam/shiti.aspx?zid={0}"
                            HeaderText="设置试题" Text="添加修改试题">
                            <ItemStyle Font-Underline="False" ForeColor="Black" />
                        </asp:HyperLinkField>
                        <asp:HyperLinkField DataNavigateUrlFields="id" DataNavigateUrlFormatString="../Exam/disp_shiti.aspx?zid={0}"
                            HeaderText="查看试题" Text="查看试题">
                            <ItemStyle Font-Underline="False" ForeColor="Black" />
                        </asp:HyperLinkField>
                        <asp:BoundField DataField="confirm" HeaderText="课程状态"  ReadOnly="True" />
                        <asp:BoundField DataField="username1" HeaderText="老师"  ReadOnly="True" />                        
                    </Columns>
                </asp:GridView>
            
            </td>
        </tr>
          <tr>
            <td style="width: 272px; height: 20px;" class="webdeyer">
                 <webdiyer:AspNetPager ID="Pager" runat="server" CurrentPageButtonClass="" FirstPageText="首页"
                        LastPageText="尾页" NextPageText="下一页" PageSize="17" PrevPageText="上一页" LayoutType="Div"
                        InvalidPageIndexErrorMessage="抱歉,页码超出范围" CustomInfoHTML="页次:%CurrentPageIndex%/%PageCount% 共%RecordCount%条"
                        PageIndexOutOfRangeErrorMessage="抱歉,页码超出范围" ShowCustomInfoSection="Left" ShowPageIndexBox="Always"
                        TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到第" AlwaysShow="true" HorizontalAlign="Right"
                        Direction="LeftToRight" CustomInfoTextAlign="left" ShowPageIndex="False" OnPageChanging="pager_PageChanging"
                        ShowMoreButtons="False" Width="820px" ShowNavigationToolTip="True" CustomInfoClass="PagerClassCss"
                        SubmitButtonClass="page_go" PageIndexBoxClass="txt_class" CssClass="page_a">
                    </webdiyer:AspNetPager>
               </td>
        </tr>
        <tr>
            <td style="width: 272px; height: 20px">
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" EnableViewState="true"  ConnectionString="<%$ ConnectionStrings:gConnectionString %>"
                    SelectCommand="SELECT [id], [name],[username1],[confirm] FROM [kecheng_laoshi] WHERE (([laoshi] = @laoshi) AND (([confirm] = @confirm) OR ([confirm] = @confirm1) OR ([confirm] = @confirm2)))  ORDER BY [xtsj2] DESC">
                    <SelectParameters>
                        <asp:SessionParameter Name="laoshi" SessionField="sUsername" Type="String" />
                        <asp:Parameter DefaultValue="新建" Name="confirm" Type="String" />
                        <asp:Parameter DefaultValue="审核未通过" Name="confirm1" Type="String" />
                        <asp:Parameter DefaultValue="终审未通过" Name="confirm2" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
    </table>
</form>
</body>
</html>
